<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class login_model extends CI_Model{
	
	function __construct(){
		parent::__construct();
	}

	function validarLogin($dados = null){
		$this->db->where('tx_login', $dados['tx_login']);
		$this->db->where('tx_senha', $dados['tx_senha']);
		$query = $this->db->get('usuarios_sistema');
		if($query->num_rows()>0){
			return $query->row(0);
		}else{
			return false;
		}
	}
	
}